#获取字符串元素
str = 'hello'
ele = str[2]
ele2 = str[0]
print(ele,ele2)

#遍历字符串
#通过使用for循环遍历字符串
str = 'wordhhd'
for ele in str:
    print(ele)
    
    
